<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    
    <h:head>
        <style type="text/css">
          html { height: 100% }
          body { height: 100%; margin: 0; padding: 0 }
          #map_canvas { height: 100% }
        </style>
        
        <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"/>
       

        <title>Facelet Title</title>
    </h:head>
    <h:body>
     
        <h:form>
        <h:commandLink action="#{enseigneMBean.creeEnseigneTest()}">Enseigne Test</h:commandLink>
        <br/>
        
        <f:view>
            
                <h1><h:outputText value="List"/></h1>
                <p:dataTable value="#{enseigneMBean.enseignes}" var="item">
                    <p:column>
                        <f:facet name="header">
                            <h:outputText value="Id"/>
                        </f:facet>
                        <h:commandLink action="#{enseigneMBean.detailEnseigneTest(item)}" value="#{item.id}" />
                    </p:column>
                    <p:column>
                        <f:facet name="header">
                            <h:outputText value="Nom"/>
                        </f:facet>
                        <h:outputText value="#{item.nom}"/>
                    </p:column>
                    <p:column>
                        <f:facet name="header">
                            <h:outputText value="Description"/>
                        </f:facet>
                        <h:outputText value="#{item.description}"/>
                    </p:column>
                    <p:column>
                        <f:facet name="header">
                            <h:outputText value="Adresse"/>
                        </f:facet>
                        <h:outputText value="#{item.adresse}"/>
                    </p:column>
                    <p:column>
                        <f:facet name="header">
                            <h:outputText value="Ville"/>
                        </f:facet>
                        <h:outputText value="#{item.ville}"/>
                    </p:column>
                    <p:column>
                        <f:facet name="header">
                            <h:outputText value="Outil"/>
                        </f:facet>
                        <h:commandButton value="AddNote" action="#{enseigneMBean.addNote()}"/>
                    </p:column>
                    
                </p:dataTable>
                        <p:growl id="growl" showDetail="true"/>  
                        <p:gmap center="36.890257,30.707417" zoom="0" type="HYBRID" model="#{mapBean.simpleModel}"  style="width:600px;height:400px" streetView="true">  
                             <p:ajax event="overlaySelect" listener="#{mapBean.onMarkerSelect}" update="growl" />  
                        </p:gmap>  
                       
                
                        
                        
                
          <p:schedule value="#{scheduleBean.model}" />
             
       
        
   
                        
                        
        </f:view>
        </h:form>
        
        
        
       
        
        
        
    </h:body>
</html>

